home *** CD-ROM | disk | FTP | other *** search
- // Kustom Magic Software, Copyright (c) 1995, Ralph Krausse
- // File Created on 1/7/96 10:58:23 AM
-
- #include "cexample.h "
-
- APPINFO AppInfo;
- CEXAMPLE CExample;
-
- int main(void)
- {
- char szPath[_MAX_PATH];
- int wErr = 0,wSealLen = 0;
-
- getcwd(szPath,100);
- strcat(szPath,"\\cexample.exe");
- strcpy(AppInfo.szAppName,szPath);
-
- AppInfo.bOverWriteSeal = 0;
- strcpy(AppInfo.szMagicString,"demomagicstring");
-
- wSealLen = sizeof(CEXAMPLE);
- if(wErr = ValidateApplication(&AppInfo, wSealLen, &CExample))
- {
- if(wErr)
- {
- char szErrorString[250];
- GetSealError (wErr, szErrorString);
- printf("Error %d, %s\n",wErr,szErrorString);
- }
- }
- else
- {
- // the CExample struct will be filled with the information.
-
- printf("%d\n",CExample.bWinNT);
- printf("%d\n",CExample.bWin95);
- printf("%d\n",CExample.bWin31);
- printf("%ld\n",CExample.dtExpirationDate);
- printf("%s\n",CExample.szCompany);
- printf("%s\n",CExample.szName);
- printf("%s\n",CExample.szMagicString);
- }
- return(0);
- }
-